/**
 * Copyright © 2009 Qasky. All rights reserved.
 *
 * 资源审计请求接口
 *
 * @author Wang Hongya
 * @version 0.0.0 2019/10/14
 *
 * History:
 * (author, date, desc)
 * (Wang Hongya, 20191014, 创建文件)
 */
import request from '../libs/request';

/**
 * 新增资源审计配置
 * @returns {*}
 */
export function addResAuditDef (para) {
    return request({
        url: 'api/sysresource/addResAuditDef',
        method: 'post',
        data: para
    });
}

/**
 * 获取资源节点审计配置
 * @returns {*}
 */
export function getResAuditDef (para) {
  return request({
    url: 'api/sysresource/getResAuditDef',
    method: 'get',
    params: para
  });
}

/**
 * 删除功能审计配置
 * @returns {*}
 */
export function delResAuditDef (para) {
  return request({
    url: 'api/sysresource/delResAuditDef',
    method: 'post',
    data: para
  });
}

/**
 * 修改功能审计配置
 * @returns {*}
 */
export function updResAuditDef(para) {
  return request({
    url: 'api/sysresource/updResAuditDef',
    method: 'post',
    data: para
  });
}

